﻿using MiniFox.Components;
using MiniFox.Data;
using MiniFox.Infrastructure;
using MiniFox.Platform.Applications.Auth;
using Platform.Core.Models;

namespace Platform.Core.Providers
{
    [AutoRegister]
    public interface IPortletProvider
    {
        Widget[] GetMyWidgets(SystemPrincipal principal);

        ResultSet<Widget> Query(SystemPrincipal principal, PagedQueryObject<WidgetQuery> request);

        Widget[] Save(SystemPrincipal principal, params string[] widgetNames);
    }
}
